Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly set certificate status for audit certs when regenerating. #11427

Merged
merged 1 commit into from
Feb 4, 2016

Conversation

peter-fogg
Copy link
Contributor

@peter-fogg peter-fogg force-pushed the peter-fogg/fix-audit-cert-regen branch from ce7a7fd to 6427b12 Compare February 4, 2016 20:35
# analytics. Only do this if the certificate is new, or
# already marked as ineligible -- we don't want to mark
# existing audit certs as ineligible.
if (created or cert.status in (CertificateStatuses.audit_passing, CertificateStatuses.audit_notpassing)) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Prefer using parens instead of \ for multiline conditionals

@bderusha
Copy link
Contributor

bderusha commented Feb 4, 2016

One small comment. Up to you to resolve 👍

@peter-fogg peter-fogg force-pushed the peter-fogg/fix-audit-cert-regen branch from 6427b12 to 87f7c2f Compare February 4, 2016 21:43
@peter-fogg
Copy link
Contributor Author

Fair enough -- I switched it to parens. I'll merge once tests pass.

@peter-fogg peter-fogg force-pushed the peter-fogg/fix-audit-cert-regen branch from 87f7c2f to 711e2e7 Compare February 4, 2016 22:23
@peter-fogg
Copy link
Contributor Author

I'm having trouble getting Pylint to accept the parens version, so I may just leave it with the backslash. ¯_(ツ)_/¯

peter-fogg pushed a commit that referenced this pull request Feb 4, 2016
Correctly set certificate status for audit certs when regenerating.
@peter-fogg peter-fogg merged commit 2ddf1f2 into master Feb 4, 2016
@peter-fogg peter-fogg deleted the peter-fogg/fix-audit-cert-regen branch February 4, 2016 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants